package com.zygh.policeasset.controller;

import com.zygh.policeasset.service.DailyMaintenanceBigClassificationService;
import com.zygh.policeasset.service.DailyMaintenanceSmallClassificationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


@RequestMapping({"/dailyMaintenanceSmallClassification"})
@Api(tags = {"日常维修名称"})
@RestController
public class DailyMaintenanceSmallClassificationController {

    @Autowired
    DailyMaintenanceSmallClassificationService dailyMaintenanceSmallClassificationService;

    @RequestMapping(value = {"/"}, method = {RequestMethod.GET})
    @ApiOperation("获取列表")
    public Object findAll(@RequestParam(value = "name", required = false) String name,
                          @RequestParam(value = "bigId", required = false) Integer bigId) {

        return dailyMaintenanceSmallClassificationService.findAll(name,bigId);
    }
}